<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

        <title><?php echo $title ?></title>

        <?php foreach ($styles as $style) : ?>
            <link rel="stylesheet" href="<?php echo $style ?>" type="text/css" media="screen" />
        <?php endforeach; ?>

            <!-- Internet Explorer Fixes Stylesheet -->

            <!--[if lte IE 7]>
    			<link rel="stylesheet" href="<?php echo $assets_css . '/ie.css' ?>" type="text/css" media="screen" />
    		<![endif]-->
		<script type="text/javascript">
			var base_url = "<?php echo Url::site(); ?>";
		</script>

        <?php foreach ($scripts as $script) : ?>
                <script type="text/javascript" src="<?php echo $script ?>"></script>
        <?php endforeach ?>

                        <!--[if IE]><script type="text/javascript" src="<?php echo $assets_js . '/jquery.bgiframe.js'; ?>"></script><![endif]-->


                <!-- Internet Explorer .png-fix -->

                <!--[if IE 6]>
                        <script type="text/javascript" src="<?php echo $assets_js . '/DD_belatedPNG_0.0.7a.js'; ?>"></script>
                        <script type="text/javascript">
        				DD_belatedPNG.fix('.png_bg, img, li');
        			</script>
        		<![endif]-->

            </head>

            <body>
            
            <div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->


                    <div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->

                            <h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>

                            <!-- Logo (221px wide) -->
                            <a href="#"><img id="logo" src="<?php echo $assets_image . '/logo.png'; ?>" alt="Simpla Admin logo" /></a>

                            <!-- Sidebar Profile links -->
                            <div id="profile-links">
        				Xin chào, <a href="#" title="Edit your profile">
                    <?php echo $user['username']; ?></a>
                                <br />
                                <a href="<?php echo Url::site('client/index'); ?>" title="View the Site">Quay trở về</a> | 
                                <a href="<?php echo Url::site('user/logout') ?>" title="Sign Out">Đăng xuất</a>
                            </div>

                    <?php echo $sidebar ?>

                    <div id="main-content"> <!-- Main Content Section with everything -->

                        <noscript> <!-- Show a notification if the user has disabled javascript -->
                            <div class="notification error png_bg">
                                <div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
                                </div>
                            </div>
                        </noscript>

                        <?php echo $main ?>

                        <div id="footer">
                            <small> <!-- Remove this notice or replace it with whatever you want -->

                                &#169; Copyright 2011 WharfLand | Powered by <a href="http://clgt.vn">Clgt.vn</a> | <a href="#">Top</a>
                            </small>
                        </div><!-- End #footer -->

                    </div> <!-- End #main-content -->

                </div></body>


                </html>
